home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
compiler
/
syntax.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
1KB
|
31 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
from compiler import ast, walk
def check(tree, multi = None):
v = SyntaxErrorChecker(multi)
walk(tree, v)
return v.errors
class SyntaxErrorChecker:
def __init__(self, multi = None):
self.multi = multi
self.errors = 0
def error(self, node, msg):
self.errors = self.errors + 1
if self.multi is not None:
print '%s:%s: %s' % (node.filename, node.lineno, msg)
else:
raise SyntaxError, '%s (%s:%s)' % (msg, node.filename, node.lineno)
def visitAssign(self, node):
pass